package com.gp.controller;

import com.gp.service.IncomeRecordService;
import com.gp.util.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program:carrent-pro
 * @author: luzzh
 * @Time: 2022-03-12 18:16
 * @Version: 1.0
 */
@RestController
@RequestMapping("incomeRecord")
public class IncomeRecordController {
    @Autowired
    private IncomeRecordService incomeRecordService;
    @GetMapping("/selectRecord")
    public CommonResult selectRecord(@RequestParam("year") Integer year){
        return incomeRecordService.selectRecord(year);
    }
}
